

function showfilediv() {
		if(document.getElementById("imgurl").value !="" ){
		  document.getElementById("imgdiv").style.display = "block";
		}
}




 $(function() {
           $("#imgBtn").click(function() {
				var  txt = '<form   action="../information/information_preview.shtml?hotActivity=1"';
					txt+= 'method="post" enctype="multipart/form-data" target="tempF">'
							+ '<input name="imageFile" id="imageFile" type="file" /><input id="sub" type="submit" style="display: none" /></form>';
					function mysubmitfunc(v, m, f) {
						if(!/(.gif)|(.png)|(.GIF)|(.PNG)|(.JPG)|(.JPEG)|(.IOC)|(.jpg)|(.jpeg)|(.ico)$/.exec($("#imageFile").val())){
							 $.prompt('请上传图片格式文件',{show:'slideDown',buttons:{OK:true}})
							 return false;
						}
						$("#sub").click();
						return true;
					}
					$.prompt(txt, {
								submit : mysubmitfunc,
								buttons : {
									Ok : true
								}
							});
				})
	    $("#userinfo td").not($("#filter_ke td")).addClass("info_td1");
		$("#userinfo tr").find("td:even").not($("#filter_ke td")).addClass("title_info2");
		$("#userinfo tr").find("td:odd").not($("#filter_ke td")).css("padding-left","5px");
        });
        
 function  goback(){
		            window.location.href="information_toInformationManage.shtml?type=1";
	}       
	
function checkform(){
    var imgurl=  document.getElementById("imgurl");
    if(imgurl.value.length==0)
    {
       alert("请上传热门图片！");
       return false;
    }
    return true;
}
	